package com.cn.unarmed.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.cn.unarmed.base.BaseActivity;

/**
 * 跳转到view测试页面
 */
public class ViewJumpActivity extends BaseActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_view_jump);

        initView();
    }

    @Override
    protected void HandleTitleBarEvent(TitleBar component, View v) {
        if (component.equals(TitleBar.LEFT)){
            finish();
        }
    }


    private void initView(){
        Button  view_0630 = (Button)this.findViewById(R.id.view_0630);
        view_0630.setOnClickListener(this);
        Button view_0714 = (Button)this.findViewById(R.id.view_0714);
        view_0714.setOnClickListener(this);
        Button view_title = (Button)this.findViewById(R.id.view_title);
        view_title.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.view_0630:
                startActivity(new Intent(this,ViewActivity0630.class));
                break;
            case R.id.view_0714:
                startActivity(new Intent(this,HoriListScrollViewActivity.class));
                break;
            case R.id.view_title:
                startActivity(new Intent(this,SystemTitleActivity.class));
                break;
            default:break;
        }
    }
}
